<style type="text/css" >
<?$auth = Zend_Auth::getInstance(); ?>
div.module
{
	float:right;
	color:brown;	
	border:2px solid;
	width:500px;
}
div.comment_child
{
	float:right;
	color:blue;	
	border:1px solid;
	width:400px;
}
</style>

<script type="text/javascript" src="/public/library/jquery/jquery.form.js"></script>
<script type="text/javascript" src="/public/library/hvn/comment.js"></script>

<div > <!-- Actions for comments -->
<form id="search-comment-box" accept-charset="UTF-8"
	action="<?= $this->escape($this->formSearch->getAction()) ?>" 
  	method="<?= $this->escape($this->formSearch->getMethod()) ?>" >
    <table >
        <tr>
        	<td>
        		<?=t(81) ?>:
        		<?=$this->formSearch->language ?>
        	</td>
        	<td>
        		<?=t(609) ?>:
        		<?=$this->formSearch->orderBy ?>	
        	</td>
        	<td>
        		<?=t(610) ?>:
        		<?=$this->formSearch->comments_per_page ?>	
        	</td>
        	<td>
        		<input type="submit" value="Go" id="go-submit"/>
        		<input type="hidden" name="content_type" value="<?=$this->content_type ?>" />
    			<input type="hidden" name="content_id" value="<?=$this->content_id ?>" />
        	</td>
        </tr>
    </table>
</form>
</div>

<div id="comment-box"></div>
<div id="comment-list" > <?=$this->commentList ?> </div>

<div id="new-comment-box-wrapper">
    <div id="new-comment-box" style="float:right" class='box'>
        <form id="new-comment-form" accept-charset="UTF-8" 
            action="<?= $this->escape($this->form2->getAction()) ?>"
        	method="<?= $this->escape($this->form2->getMethod()) ?>" >
        	<br/> <br/>
            <?=t(13) ?>:
            <?=$this->form2->title ?>
            <br/>
            <? if (!$auth->hasIdentity()):?>
            <?=t(611) ?>: 
            <?=$this->form2->poster_name?>
            <br/>
            <?=t(612) ?>:
            <?=$this->form2->guest_email ?>
            <br>
            <?=t(824) ?>:
            <?=$this->form2->guest_link;?>
            <br>
            <? endif  ?>
            <?=t(81) ?>:
            <?=$this->form2->language ?>
            <br>
            <?=t(606) ?>:
            <br/>
            <?=$this->form2->comment_text ?>
            <br/>
            <div>
            <?=$this->form2->captcha_newcomment ?>
            <a href="javascript:void()" class="redraw"> <?=t(22) ?> </a>
            </div>
            <br/>
            <?=$this->form2->submit ?>
            
            <input type="hidden" name="content_type" value="<?=$this->content_type ?>" />
            <input type="hidden" name="content_id" value="<?=$this->content_id ?>" />
            <input type="hidden" id = "pid" name="pid" value= "0" />
        </form>
    </div>

</div>